package com.sise.wangzhan;

import com.netflix.loadbalancer.IPing;
import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;

/**
 * @Classname MyConfig
 * @Description TODO    Ribbon配置类
 * @Date 2020/4/2 10:02
 * @Created by wangzhan
 */
public class MyConfig {

    @Bean
    public IRule getRule(){
        return new MyRule();
    }

    @Bean
    public IPing getPing(){
        return new MyPing();
    }


}
